package top.infopub.mgr.fia.dao;


import org.apache.ibatis.annotations.Param;

import top.infopub.generic.GenericDao;
import top.infopub.mgr.fia.domain.ProBudgetOfgroupDomain;
import top.infopub.mgr.fia.vo.ProBudgetOfgroupVo;
import top.infopub.model.fia.ProBudgetOfgroup;

import com.github.pagehelper.Page;


/** 项目公司年度控股指标预算(FIA_PRO_BUDGET_OFGROUP) **/
public interface ProBudgetOfgroupDao extends GenericDao<ProBudgetOfgroup, String> {

    /**
     * 根据条件查询分页数据
     * @param proBudgetOfgroupVo
     * @return 
     * @see
     */
    Page<ProBudgetOfgroupDomain> selectByDomainWhere(ProBudgetOfgroupVo proBudgetOfgroupVo);

    /**
     * 新增
     */
    void insertById(ProBudgetOfgroup proBudgetOfgroup);

    /**
     * 详情
     */
    ProBudgetOfgroupVo queryById(String id);
    
    /**
     * 判断是否存在同一公司名称、同一预算年度已有生效中单据
     */
    int count(@Param("belongsYear")Integer belongsYear,@Param("hrOrgBillId")String hrOrgBillId);

}